package com.personal.test.common.utils;

import java.util.Map;

/**
 * @author linyh
 * @version 1.0
 * @email 1503386669@qq.com
 * @date 2020/10/23 14:47
 */
public class ParamsUtils {

    public static Map<String,Object> setParams(Map<String,Object> params){
        if(null == params.get("pageSize")||" ".equals(params.get("pageSoze"))){
            params.put("pageSize",10);
        }
        if(null == params.get("pageNo")||" ".equals(params.get("pageNo"))){
            params.put("pageNo",1);
        }
        return params;
    }
}
